/**
 * 过滤数组假值
 * @param arr
 * @returns {*}
 */
function bouncer(arr) {
    function isBigEnough(el){
        if(el!==false || el!==null || el!==0 || el!=="" || el!== undefined || el!==NaN){
            return el;
        }
    }
    return arr.filter(isBigEnough);
}

console.log(bouncer([7, "ate", "", false, 9]));